-
Notifications
You must be signed in to change notification settings - Fork 940
Add shard id field to CLUSTER SHARDS response #2568
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
6827552 to
e185219
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me
|
thanks for accepting the PR. The feedback was to change the response in to the following format instead. |
|
I think we can just do "id". |
Signed-off-by: Satheesha Chattenahalli Hanume Gowda <[email protected]>
e185219 to
adcec3e
Compare
Signed-off-by: Satheesha Chattenahalli Hanume Gowda <[email protected]>
|
sample sample |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
|
@satheeshaGowda Could you also update |
Signed-off-by: Satheesha Chattenahalli Hanume Gowda <[email protected]>
|
I think we need also update the doc site - https://github.com/valkey-io/valkey-doc/blob/main/commands/cluster-shards.md, will send that separate PR later. |
Signed-off-by: Satheesha Chattenahalli Hanume Gowda <[email protected]>
Signed-off-by: Satheesha Chattenahalli Hanume Gowda <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just one more thing @satheeshaGowda, forgot to mention we auto generate/update the commands.def file. Could you perform make -j and add the diff ?
Signed-off-by: Satheesha Chattenahalli Hanume Gowda <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@valkey-io/core-team It's good to be merged. Do we wait for the RC3 or start cherry picking changes to 9.0 release branch from now ?
|
@hpatro Let's just set project to 9.0, then whoever does the release will handle it. |
Signed-off-by: Satheesha Chattenahalli Hanume Gowda <[email protected]>
|
Allowed the workflow to run the CI. It was disabled as the author is new to the project. Once that passes, I will merge it in. |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## unstable #2568 +/- ##
============================================
+ Coverage 72.18% 72.41% +0.22%
============================================
Files 128 128
Lines 71037 71243 +206
============================================
+ Hits 51277 51589 +312
+ Misses 19760 19654 -106
🚀 New features to boost your workflow:
|
|
We released 9.0 RC3 without this (I wasn't aware that this was pending). I think we should punt this back to 9.1. |
I wasn't sure as well. @zuiderkwast suggested to target it to 9.0. Do we still want to do it with GA or just punt ? |
|
Idk. I thought we talked about it in the last meeting to be able to squeeze it in for 9.0, but I may have misunderstood. I suppose we shouldn't add new features after rc1 (or after rc2 for small ones maybe). |
No new features after rc1, and no incremental features after rc2 is sort of my belief. |
This change exposes an existing, persistent (in nodes.conf) unique shard
identifier for each shard in the cluster as part of the `CLUSTER SHARDS` command
response.
```
1) 1) "slots"
2) 1) (integer) 0
2) (integer) 999
3) (integer) 2001
4) (integer) 3999
5) (integer) 4501
6) (integer) 5460
3) "nodes"
4) 1) 1) "id"
2) "6e76043bed00e716e85035107866ea16e9a5f700"
3) "port"
4) (integer) 6385
5) "ip"
6) "127.0.0.1"
7) "endpoint"
8) "127.0.0.1"
9) "role"
10) "replica"
11) "replication-offset"
12) (integer) 8092
13) "health"
14) "online"
2) 1) "id"
2) "b2f8c841707b2246ec2a641c37f16e88fe0bb700"
3) "port"
4) (integer) 6380
5) "ip"
6) "127.0.0.1"
7) "endpoint"
8) "127.0.0.1"
9) "role"
10) "master"
11) "replication-offset"
12) (integer) 8092
13) "health"
14) "online"
5) "id"
6) "3f2a7bb7bbd5fc2a331fe9bf95f5e02bcca02430"
```
---------
Signed-off-by: Satheesha Chattenahalli Hanume Gowda <[email protected]>
Co-authored-by: Satheesha Chattenahalli Hanume Gowda <[email protected]>
Related to the PR valkey-io/valkey#2568 --------- Signed-off-by: Satheesha Chattenahalli Hanume Gowda <[email protected]> Signed-off-by: Harkrishn Patro <[email protected]> Co-authored-by: Satheesha Chattenahalli Hanume Gowda <[email protected]> Co-authored-by: Harkrishn Patro <[email protected]> Co-authored-by: Madelyn Olson <[email protected]>
This change exposes an existing, persistent (in nodes.conf) unique shard Id for each shard in the cluster as part of the
CLUSTER SHARDScommand response.